package com.code.qgjx;

import com.code.qgjx.tools.EmailUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.mail.SimpleMailMessage;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
@EnableSwagger2  
@ServletComponentScan

public class TestSpboot2Application {

	// 用spring 资源加载类 ResourceLoader
	public static void main(String[] args) {
		SpringApplication.run(TestSpboot2Application.class, args);
	}

	/*
	 * @Bean public MultipartResolver multipartResolver() { CommonsMultipartResolver
	 * multipartResolver = new CommonsMultipartResolver();
	 * multipartResolver.setMaxUploadSize(1000000); return multipartResolver; }
	 */
//
//	public static void main(String[] args) {
//		EmailUtil emailUtil = new EmailUtil();
//
//		emailUtil.sendSimpleMail(
//				"17630036763@163.COM",
//				"岗位申请被驳回通知",
//				"很抱歉，您的岗位申请被驳回。\n驳回原因："
//		);
//	}

}
